<!DOCTYPE html>
<html class="app" ng-app="app">
<head>
<meta charset="utf-8" />
<title>007SF</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<link rel="stylesheet" href="{{ asset('/assets/css/bootstrap.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('/assets/css/animate.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('/assets/font-awesome/css/font-awesome.min.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('/assets/css/icon.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('/assets/css/font.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ asset('/assets/css/app.css') }}" type="text/css" />
<script type="text/javascript" src="{{ asset('/assets/js/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('/assets/js/bootstrap.js') }}"></script>
</head>
<body class="">
	<section class="vbox">
		<header class="bg-white header header-md navbar navbar-fixed-top-xs box-shadow">
			<div class="navbar-header aside-md dk">
				<a class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav"> 
					<i class="fa fa-bars"></i>
				</a> 
				<a href="{{ url('/backend') }}" class="navbar-brand"> 
					<span class="hidden-nav-xs">007书房</span>
				</a> 
				<a class="btn btn-link visible-xs" data-toggle="dropdown" data-target=".user"> 
					<i class="fa fa-cog"></i>
				</a>
			</div>
			<ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user user">
				<li class="dropdown">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> 
						<span class="thumb-sm avatar pull-left"> 
							<img src="{{ Auth::user()->avatarUrl() }}" alt="...">
						</span> 
						{{ Auth::user()->nickname }} <b class="caret"></b>
					</a>
					<ul class="dropdown-menu animated fadeInRight">
						<li><a href="{{ url('backend/password/reset') }}">修改密码</a></li>
						<li><a href="{{ url('/backend/logout') }}">退出登录</a></li>
					</ul>
				</li>
			</ul>
		</header>
		<section>
			<section class="hbox stretch">
				<aside class="bg-black aside-md hidden-print" id="nav">
					<section class="vbox">
						<section class="w-f scrollable">
							<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
								<div class="clearfix wrapper dk nav-user hidden-xs">
									<div class="dropdown">
										<a href="#" class="dropdown-toggle" data-toggle="dropdown"> 
											<span class="thumb avatar pull-left m-r"> 
												<img src="{{ Auth::user()->avatarUrl() }}" class="dker" alt="..."> 
											</span> 
											<span class="hidden-nav-xs clear"> 
												<span class="block m-t-xs"> 
													<strong class="font-bold text-lt">{{ Auth::user()->nickname }}</strong>
												</span> 
												<span class="text-muted text-xs block">Art Director</span>
											</span>
										</a>
									</div>
								</div>
								<nav class="nav-primary hidden-xs">
									<div class="text-muted text-sm hidden-nav-xs padder m-t-sm m-b-sm">Functions</div>
									<ul class="nav nav-main" data-ride="collapse">
										<li>
											<a href="{{ url('/backend') }}" class="auto"> 
												<i class="i i-statistics icon"> </i> 
												<span class="font-bold">概览</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/categories') !== false ) class="active" @endif>
											<a href="{{ url('/backend/categories') }}" class="auto"> 
												<i class="fa fa-list icon"> </i> 
												<span class="font-bold">分类管理</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/books') !== false) class="active" @endif>
											<a href="{{ url('/backend/books') }}" class="auto"> 
												<i class="i i-book icon"> </i> 
												<span class="font-bold">小说管理</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/links') !== false) class="active" @endif>
											<a href="{{ url('/backend/links') }}" class="auto"> 
												<i class="fa fa-link icon"> </i> 
												<span class="font-bold">友链管理</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/members') !== false) class="active" @endif>
											<a href="{{ url('/backend/members') }}" class="auto"> 
												<i class="fa fa-users"> </i> 
												<span class="font-bold">用户管理</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/feedbacks') !== false) class="active" @endif>
											<a href="{{ url('/backend/feedbacks') }}" class="auto"> 
												<i class="i i-question"> </i> 
												<span class="font-bold">反馈管理</span>
											</a>
										</li>
										<li @if(starts_with(Request::path(), 'backend/operations') !== false) class="active" @endif>
											<a href="{{ url('/backend/operations') }}" class="auto"> 
												<i class="fa fa-cogs"> </i> 
												<span class="font-bold">操作管理</span>
											</a>
										</li>
									</ul>
								</nav>
							</div>
						</section>
						<footer class="footer hidden-xs no-padder text-center-nav-xs">
							<a href="modal.lockme.html" data-toggle="ajaxModal"
								class="btn btn-icon icon-muted btn-inactive pull-right m-l-xs m-r-xs hidden-nav-xs">
								<i class="i i-logout"></i>
							</a> <a href="#nav" data-toggle="class:nav-xs"
								class="btn btn-icon icon-muted btn-inactive m-l-xs m-r-xs"> <i
								class="i i-circleleft text"></i> <i
								class="i i-circleright text-active"></i>
							</a>
						</footer>
					</section>
				</aside>
				<section class="content">
					<section class="hbox stretch">
						<section>
							<section class="vbox">
								<section class="scrollable padder">
									@yield('content')
								</section>
							</section>
						</section>
					</section>
					<a href="#" class="hide nav-off-screen-block"
						data-toggle="class:nav-off-screen" data-target="#nav"></a>
				</section>
			</section>
		</section>
	</section>
<script type="text/javascript">
$(document).ready(function() {
	
    var H = $(window).height();
    var h1 = $('#page-wrapper').height();

	if($('#content').length > 0) {
		var ue = UE.getEditor('content', {
			initialFrameHeight: 400,
		});
		
		ue.ready(function() {
			ue.execCommand('serverparam', '_token', '{{ csrf_token() }}');
		});
		
	} else {
		if(H - 140 - h1 > 0) {
    		$('#page-wrapper').height(H - 70);
    	}
	}
});
</script>
</body>
</html>